@import "./theme/themeColor";

.col-sm-3 {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 768px) {
  .col-sm-3 {
    min-height: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: inherit;
  }
}

/*loading加载框*/
#initialize {
  position: fixed;
  z-index: 9999;
  top: 50%;
  margin-left: 30px;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  #initialize {
    margin-left: 0;
  }
}


/** 皮肤*/
@media (min-width: 768px) {
  .navbar-box {
    &.nav-skin {
      position: fixed;
      width: 45px;
      height: 100%;
      left: 0;
      top: 0;
      z-index: 500;
      background-color: rgba(0, 0, 0, .65);
      box-shadow: none;

      .navbar-expanded {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        margin-bottom: 5px;
        &.minS {
          display: none;
        }
        a {
          display: block;
          padding: 10px 0;
          text-align: center;
          text-decoration: none;
          img {
            margin: 0 auto;
          }

          color: $skin-text-color;
          &:hover {
            color: $text-color;
          }
        }
      }
    }
  }

  .navbar-expanded.menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-expanded {
    display: flex;
    flex-direction: row;
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    > div {
      flex: 1;

    }

    a {
      display: block;
      padding: 10px;
      text-align: center;
      line-height: 31px;
      text-decoration: none;
      color: $skin-text-color;
      &:hover {
        color: $text-color;
      }
    }
  }

  nav.navbar.bootsnav ul.nav > li.dropdown > a.dropdown-toggle:after {
    margin-top: -3px;
  }
}


@media (min-width: 1199px) {
  .main-box {
    padding-left: 60px;

    .sidebar-box {
      display: block !important;
    }
  }
}

.main-box {
  .row {
    margin: 0;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .main-box {
    padding-left: 45px;

    .sidebar-box {
      display: none !important;
    }

    .col-sm-offset-3 {
      margin-left: 0;
    }

  }
}

@media (min-width: 992px) {
  .main-box {
    ul.footer-container {
      padding-left: 30px !important;
    }
  }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
  .navbar-header {
    display: none;
  }
  .main-box {
    padding-left: 45px;
  }
  .col-sm-offset-3 {
    margin-left: 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  nav.navbar.bootsnav ul.nav > li > a {
    font-weight: 600;
  }
}

@media (min-width: 768px) {
  .main-box {
    // 博客背景
    .sidebar-box {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      min-height: 100%;
      left: 45px;

      .cover-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-position: center;
        //background-image: url("/static/images/bg.jpg");
      }

      .bottom-block {
        position: absolute;
        bottom: 0;
        padding: 30px;
        color: $text-color;
      }
    }
  }
}

@media (max-width: 768px) {
  .nav-skin {
    .navbar-expanded {
      display: none !important;
    }
  }
  .main-content {
    i#mobile {
      display: block !important;
      line-height: 43px;
      color: $text-color;
    }
  }
}

@media (max-width: 492px) {
  .blog-container {
    min-height: calc(100vh - 74px) !important;
  }
}

.main-content {
  position: relative;
  min-height: 100vh;

  i#mobile {
    display: none;
  }

  // blog正文部分
  .blog-container {
    min-height: calc(100vh - 51px);
    padding-bottom: 51px;
  }

  // 页脚
  ul.footer-container {
    margin: 0;
    padding-left: 15px;
  }

  .footer-container {
    padding: 10px 0 10px 10px;
    border-top: solid 1px #d9d9d9;

    li {
      display: inline-block;
      margin-right: 10px;

      a.icp {
        color: #999;
        &:hover {
          color: #00a1d6;
          text-decoration: none;
        }
      }
      a.github,a.email{
        display: inline-block;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        border-radius: 50%;
        font-size: 18px;

        &:hover {
          text-decoration: none;
        }

        i {
          font-size: 18px;
          color: rgba(0, 0, 0, .45);
        }

        &.github:hover {
          background-color: #49be38;

          i {
            color: #ffffff;
          }
        }

        &.email:hover {
          background-color: #f57e42;

          i {
            color: #ffffff;
          }
        }

      }

      &.user {
        font-family: fantasy;
      }
    }
  }
}

/*************************** 右边搜索面部 ***************************/
#search-form-box {
  .form-control {
    height: 50px;
    line-height: 50px;
  }

  input.form-control {
    width: 85%;
    border-right: 0;
    color: $form-input-text-color;
    outline: 0;

    &:focus {
      border: solid 1px $form-btn-search-bg-color;
      border-right: 0;
      outline: 0;
    }
  }

  button.search-btn {
    width: 15%;
    height: 50px;
    border: none;
    border-radius: 4px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    color: $text-color;
    background-color: $form-btn-search-bg-color;
    &:hover {
      background-color: $form-btn-search-bg-color-hover;
    }
    &:focus {
      border: none;
    }
  }
}

// 登陆个人信息
.navbar-expanded {
  .expanded-avatar {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    img {
      box-sizing: border-box;
      border: 2px solid transparent;
      border-radius: 50%;
    }
    &:hover img {
      border: 2px solid #f49484;
    }
  }
}
